import java.util.ArrayList;

import junit.framework.TestCase;


public class FuzzyNumberTest extends TestCase {

	public void testAlpha(){
//		ArrayList<Segment> segments = new ArrayList<Segment>();
//		segments.add(new Segment(new Point(0,0), new Point(1,2)));
//		segments.add(new Segment(new Point(1,2), new Point(2,2)));
//		segments.add(new Segment(new Point(2,2), new Point(2,0)));
//		FuzzyNumber fn1 = new FuzzyNumber(segments);
//		ArrayList<Float> alphas = fn1.getAlphas();
//		assertTrue(alphas.size()==1);
//		assertTrue(alphas.get(0)==2);
//
//		segments = new ArrayList<Segment>();
//		segments.add(new Segment(new Point(0,0), new Point(2,2)));
//		segments.add(new Segment(new Point(2,2), new Point(2,2)));
//		segments.add(new Segment(new Point(2,2), new Point(3,1)));
//		segments.add(new Segment(new Point(3,1), new Point(5,1)));
//		segments.add(new Segment(new Point(5,1), new Point(7,7)));
//		segments.add(new Segment(new Point(7,7), new Point(7,7)));
//		segments.add(new Segment(new Point(7,7), new Point(9,0)));
//		segments.add(new Segment(new Point(9,0), new Point(10,0)));
//		segments.add(new Segment(new Point(10,1), new Point(10,1)));
//		segments.add(new Segment(new Point(10,1), new Point(12,0)));
//		FuzzyNumber fn2 = new FuzzyNumber(segments);
//		alphas = fn2.getAlphas();
//		System.out.println(alphas);
//		assertTrue(alphas.size()==4);
//		
//		fn1.calculateAlphaCut(1);
		

	}
	
}
